//
//  CTDeviceFunction.h
//  ConstellationTalk_0.1
//
//  Created by riley on 15/4/3.
//  Copyright (c) 2015年 riley chu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef enum{
    
    iPhone_Unknow = -999,
    iPhone4_4s = 0,
    iPhone5_5s_5c,
    iPhone6,
    iPhone6_Plus
    
}DeviceTypeAdaptation;

typedef enum {
    DeviceSystemVersion_iOS8 = 1,
    DeviceSystemVersion_iOS7 = 2,
    DeviceSystemVersion_iOS6 = 3,
    DeviceSystemVersion_iOS5 = 4,
    DeviceSystemVersion_Unknow
}DeviceSystemVersion;


@interface CTDeviceFunction : NSObject




//获取UDID
+(NSString *)DeviceUDID;

//客户端时间，十位的Unix时间戳(Unix timestamp)
+(NSString *)UnixTimestamp;

//外跳appStore
+(void)jumpToAppStore:(NSString *)path;

//截屏
+(UIImage *)imageFromView:(UIView *)theView atFrame:(CGRect)r;
+(UIImage *)cutImg:(UIImage *)img atFrame:(CGRect)r;

//存入本地制定相册
+(void)saveImageToAlbum:(NSString *)name withImage:(UIImage *)img;

//清除通知角标
+(void)clearNotiBadgeNumber;


+(DeviceTypeAdaptation)deviceTypeForResolutionAdaptation;
+(DeviceSystemVersion)deviceSystemVersion;


@end
